import api from '@/api/index.ts'

// 获取列表
export function GetData(params: any) {
  return api.get('/api/act/drawactuser/userlist', { params })
}
// 机会明细
export function GetChancesourceData(params: any) {
  return api.get('/api/act/drawactuser/chancesourcelist', { params })
}
// 抽奖记录
export function GetDrawrecordData(params: any) {
  return api.get('/api/act/drawactuser/userdrawrecordlist', { params })
}
// 作废
export function PostDeleteData(id: number) {
  return api.post('/api/act/drawactuser/cancellationdrawchance', { id })
}
// 发送抽奖
export function PostSenddrawchanceData(params: any) {
  return api.post('/api/act/drawactuser/senddrawchance', params)
}
// 抽奖记录导出
export function GetExcelData(params: any) {
  return api.get('/api/act/drawactuser/userdrawrecordexcel', { params, responseType: 'blob' })
}
